package cn.itcast.mobilebrowser.model;

import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.Ignore;
import androidx.room.PrimaryKey;

@Entity(tableName = "book_mark")
public class BookMark {

    @PrimaryKey(autoGenerate = true)
    private Integer id;

    private String title;

    private String url;

    public BookMark(String title, String url) {
        this.title = title;
        this.url = url;
    }

    @Ignore
    public BookMark(Integer id, String title, String url) {
        this.id = id;
        this.title = title;
        this.url = url;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }
}
